#!groovy
pipeline{
    agent{node "master"}

    stages{
        stage("mavenbuild"){
            steps{
            script{
                mvnHome = tool "M2"
                sh "${mvnHome}/bin/mvn -v}"
            }

            }
        }
    }

}
